import service from "../utils/request";
//-------------------------待处理签约-----------------------------
//签约状态
export function getSelectQy(payload = {}) {
    return service.get('/wfl/api/selectCstageList', { params: payload })
}

//签约所有数据selectContractList
export function getsignData(payload = {}) {
    return service.get('/wfl/api/selectContractList', { params: payload })
}



//请求待处理签约数据
export function getSetPendingList(payload = {}) {
    return service.get('/api/l-setPendingList', { params: payload })
}
//编辑签约信息
export function getSignEdit(payload: any = {}) {
    var { id, ...data } = payload
    return service.patch('/api/l-setPendingList/' + id, data)
}

//关键词搜索
export function SerchSignPendingList(payload={}){
    return service.get('/api/l-setPendingList',{params:payload})
}

//--------------------------签约记录-----------------------------
//请求签约记录数据
export function getSignRecordList(payload = {}) {
    return service.get('/api/l-signRecordList', { params: payload })
}
//编辑签约记录信息
export function getSignRecordEdit(payload: any = {}) {
    var { id, ...data } = payload
    return service.patch('/api/l-signRecordList/' + id, data)
}
//关键词搜索
export function SerchSignRecordList(payload={}){
    return service.get('/api/l-signRecordList',{params:payload})
}